package com.zt.ztyh.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 *
 * @TableName ztyh_funds
 */
@TableName(value ="ztyh_funds")
@Data
public class Funds implements Serializable {
    /**
     * 理财产品主键
     */
    @TableId(value = "fid")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fid;

    /**
     * 产品名称
     */
    @TableField(value = "fname")
    private String fname;

    /**
     * 近一个月利率
     */
    @TableField(value = "mouthrate")
    private Double mouthrate;

    /**
     * 近一年的利率
     */
    @TableField(value = "yearrate")
    private Double yearrate;

    /**
     * 0:高1:低
     */
    @TableField(value = "risk")
    private Integer risk;

    /**
     * 0:上架1:下架
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    @TableField(exist = false)
    private Fundsinfo fundsinfo;

    /**
     * 冗余
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
